package com.kymatrix.mpo.plus.bpm.server.model.form.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - 委派流程任务的 Request")
@Data
@Accessors(chain=true)
public class DelegateBpmTaskReq {

    @ApiModelProperty(value = "任务编号", example = "1024")
    @NotEmpty(message = "任务编号不能为空")
    private String id;

    @ApiModelProperty(value = "被委派人 ID", example = "1")
    @NotNull(message = "被委派人 ID 不能为空")
    private String delegateUserId;

    @ApiModelProperty(value = "委派原因", example = "做不了决定，需要你先帮忙瞅瞅")
    @NotEmpty(message = "委派原因不能为空")
    private String reason;

}
